import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {TemplateComponent} from './template/template.component';
import {AddTemplateComponent} from './template/addTemp/addTemp.component';
import {EditTemplateComponent} from './template/editTemp/editTemp.component';
import {templateTypeComponent} from './template-type/template-type.component';

const routes: Routes = [
  {
    path: 'template',
    component: TemplateComponent,
  },
  {
    path: 'template/addTemp',
    component: AddTemplateComponent,
  },
  {
    path: 'template/editTemp/:id',
    component: EditTemplateComponent,
  },
  {
    path: 'template-type',
    component: templateTypeComponent,
  }

];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [
    RouterModule
  ],
  providers: []
})
export class TemplateRoutingModule {
}
